﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Users_HistoryScore : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["studIdcard"] != null)
        {
            if (!Page.IsPostBack)
            {
                bindDTable();
                DataTable dt_stud = User_Control.getStudInfoByIdCard(IDCard);
                DataRow dr_stud = dt_stud.Rows[0];

                currentTime.Text = DateTime.Today.ToLongDateString();
                DataTable dt = Exam.ApplyInfo_GetHistoryListByIdCard(IDCard);
                foreach (DataRow dr in dt.Rows)
                {
                    string applyId = dr["ApplyID"].ToString();
                    string emAllName = dr["EmAllName"].ToString();
                }
            }
        }
    }
    private void bindDTable()
    {
        DataTable dt = Exam.getHistoryScoreByIdCard(IDCard);
        gv.DataSource = dt;
        gv.DataBind();
    }
    protected override void Page_LoadOnce()
    {
        base.Page_LoadOnce();
    }
}